#include "caculator.h"

int main()
{
        //输入字符串
        string str;
        cin >> str;
        //转换为树
        Expression *exp = strToTree(str, 0, str.length() - 1);
        cout << exp->Evaluate() << endl;
        return 0;
}

